]> dgit.raspbian.org Git - gnome-shell.git/commit
[StThemeNode] Add support for 'width' and 'height' CSS properties.
authorSteve Frécinaux <code@istique.net>
Sat, 17 Oct 2009 00:05:30 +0000 (02:05 +0200)
committerSteve Frécinaux <code@istique.net>
Wed, 21 Oct 2009 18:18:32 +0000 (20:18 +0200)
commit7239eb2f9094ffa4bab28fd42d82669f419076ea
tree90997490874149fabf679c624cb1c21b43622404
parent5b769138b6a628e6cf4d8b6a6501ff3356721c32
[StThemeNode] Add support for 'width' and 'height' CSS properties.

The behavior in respect to borders matches CSS - the properties set the size of
the content exclusive of the borders (CSS3 box-sizing property - not implemented
here - changes this).

min-width/min-height correspond very closely to the CSS meanings.

width/height are a little different from the CSS meanings - the CSS meaning is
"exactly this size unless overridden by min/max-width/height" - but within the
realm of our layout algorithm, making them control natural size is pretty
close.

This way we can force elements to have a fixed natural or minimum size.

https://bugzilla.gnome.org/show_bug.cgi?id=598651
src/st/st-theme-node.c
src/st/st-theme-node.h